package com.flashbsm.events
{

	import flash.events.Event;
	import mx.collections.ArrayCollection;
 	import flash.display.*;
	import mx.controls.Alert;
	import com.flashbsm.model.*;

	public class pluginPressedEvent extends Event
	{
		public static const PLUGIN_PRESSED:String = "pluginPressed";

		public var pluginData:Object;
		public var Categ:String;
		public var ShortDesc:String;
		public var LongDesc:String;

		public function pluginPressedEvent( pluginIndex:uint, groupIndex:uint )
		{
			super( PLUGIN_PRESSED, true );
			pluginData = fbsmModel.getInstance().pluginItems.getItemAt(groupIndex).plugins[pluginIndex];
			Categ = fbsmModel.getInstance().categItems.getItemAt(0).allGroups[groupIndex];
			ShortDesc = pluginData.ShortDesc;
			LongDesc = pluginData.LongDesc;
		}
	}
}
